package com.framework.loippi.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.framework.loippi.dao.PicDao;
import com.framework.loippi.entity.Pic;
import com.framework.loippi.service.PicService;
import java.util.List;
/**
 * SERVICE - Pic(药品图片表)
 * 
 * @author wmj
 * @version 2.0
 */
@Service
public class PicServiceImpl extends GenericServiceImpl<Pic, Long> implements PicService {
	
	@Autowired
	private PicDao picDao;
	
	
	@Autowired
	public void setGenericDao() {
		super.setGenericDao(picDao);
	}

	public List<Pic> findListByPage(Object parameter){
		return picDao.findListByPage(parameter);
	}

	public Long deletes(Object parameter){
		return picDao.deletes( parameter);
	}

	@Override
	public List<Pic> findByMedicineId(Long id) {
		return picDao.findByMedicineId(id);
	}

	@Override
	public void deleteByMedicineId(Long id) {
		picDao.deleteByMedicineId(id);
	}


}
